package com.itbaizhan.swaggerdemo.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel(value="人类",description = "描述")
public class People {
    private int id;
    @ApiModelProperty(value = "姓名",name= "name",required = true,example = "张三")
    private String name;
    private String address;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
}
/*
* ApiModelProperty

注解名称	                参数	        含义
@ApiModelProperty	 	            一般用于方法、属性的说明
 	                    value	    字段说明
 	                    name	    重写属性名
                        required	是否必须
                        example	    示例内容
                        hidden	    是否隐藏*/